package com.jbit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jbit.common.RespBean;
import com.jbit.common.condition.UserRegisterCondition;
import com.jbit.pojo.User;

import javax.servlet.http.HttpServletRequest;

public interface UserService extends IService<User> {

    /**
     * 用户注册
     * @param condition
     * @return
     */
    boolean userRegister(UserRegisterCondition condition);

    /**
     * 用户登录
     * @param username
     * @param password
     * @param request
     * @return
     */
    RespBean login(String username, String password, HttpServletRequest request);
}

